package com.study.d2_reflect;

public class Test1Class {
    public static void main(String[] args) throws Exception {
        //目标：获取Class对象

        //1
        Class c1 = Student.class;
        System.out.println(c1);

        //2
        Class c2 = Class.forName("com.study.d2_reflect.Student");
        System.out.println(c2);

        //3
        Student s= new Student();
        Class c3 = s.getClass();

        System.out.println(c3);
        System.out.println(c1==c2);
        System.out.println(c1==c3);
    }
}
